package com.jason.system.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/**
 * @author jie
 * @version 1.0
 * success come from self-discipline
 * @date 2021/3/17 10:40
 * 类：工单
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ExcelTarget("OrderEntity")
public class Order implements Serializable {

  private Integer oId;

  /**
   * 故障类型（电信、校园网、维修平台）
   */
  @Excel(name = "故障类型")
  private String category;

  /**
   * 客户住址
   */
  @Excel(name = "住址")
  private String address;

  /**
   * 联系方式
   */
  @Excel(name = "联系方式")
  private String number;

  /**
   * 故障描述信息
   */
  @Excel(name ="故障现象" )
  private String description;

  /**
   * 派单时间
   */
  @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @Excel(name = "故障下达时间（派单）",exportFormat = "yyyy/MM/dd HH:mm:ss")
  private Date sendTime;

  /**
   * 派单人员,就学生姓名
   */
  @Excel(name = "派单人")
  private String dispatcher;

  /**
   * 预约时间
   */
  @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date appointmentTime;

  /**
   * 派单状态（处理中、已完成）
   */
  private Integer status;

}
